package com.freesun.shop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freesun.shop.entity.Transport;
import com.freesun.shop.vo.ShopCartItem;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zf
 * @since 2019-11-13
 */
public interface TransportService extends IService<Transport> {

    IPage<Transport> findByPage(Transport transport, Page<Transport> page);


    BigDecimal calFee(Long addrId, List<ShopCartItem> shopCartItems, BigDecimal totalPay);
}
